home *** CD-ROM | disk | FTP | other *** search
/ Mac Format 1997 July / macformat52.iso / mac / Shareware Plus / Developers / MacFloater Folder / MacFloater.h < prev    next >
Text File  |  1997-04-24  |  2KB  |  83 lines

  1. /*    MacFloater.h
  2.  *
  3.  *        Floating window support library. This is used to provide
  4.  *    floating window support on the Macintosh environment.
  5.  */
  6.  
  7. #ifndef __MACFLOATER_H__
  8. #define __MACFLOATER_H__
  9.  
  10. #include <XConfig.h>
  11.  
  12. #if OPT_MACOS != 1
  13. #error  Macintosh specific header file. Do not include elsewhere
  14. #endif
  15.  
  16. /************************************************************************/
  17. /*                                                                        */
  18. /*    Constants                                                            */
  19. /*                                                                        */
  20. /************************************************************************/
  21.  
  22. #define    KFloatingWindow                10
  23. #define KNormalWindow                11
  24.  
  25. /************************************************************************/
  26. /*                                                                        */
  27. /*    External Functions (Required Functions)                                */
  28. /*                                                                        */
  29. /************************************************************************/
  30.  
  31. #ifdef __cplusplus
  32. extern "C" {
  33. #endif
  34.  
  35. /*
  36.  *    Activation routine; this is required to provide proper window
  37.  *    activate/deactivate support.
  38.  */
  39.  
  40. extern void DoActivate(WindowPtr,short);    // Needed support routine
  41.  
  42. #ifdef __cplusplus
  43. }
  44. #endif
  45.  
  46. /************************************************************************/
  47. /*                                                                        */
  48. /*    Floating Windows                                                    */
  49. /*                                                                        */
  50. /************************************************************************/
  51.  
  52. /*
  53.  *  Floating window support [MacFloater.c]
  54.  *
  55.  *        These are replacements for the Macintosh functions of similar
  56.  *    name. They are used for creating and maintaining floating windows.
  57.  *
  58.  *        NOTE: This requires the 'WDEF' resource #128 (Infinity Window)
  59.  *    for proper operation. The window definition passed is between
  60.  *    2048 and 2063 to create a floating window.
  61.  */
  62.  
  63. #ifdef __cplusplus
  64. extern "C" {
  65. #endif
  66.  
  67. extern WindowPtr MFrontWindow();
  68. extern WindowPtr MLastFloater();    // Last floater window
  69. extern void MSelectWindow(WindowPtr);
  70. extern WindowPtr MNewWindow(Ptr,Rect *,unsigned char *,Boolean,short,WindowPtr,Boolean,long);
  71. extern WindowPtr MNewCWindow(Ptr,Rect *,unsigned char *,Boolean,short,WindowPtr,Boolean,long);
  72. extern void MShowWindow(WindowPtr);
  73. extern void MHideWindow(WindowPtr);
  74. extern void MCloseWindow(WindowPtr);
  75. extern void MDisposeWindow(WindowPtr);
  76. extern void MDragWindow(WindowPtr,Point,const Rect *);
  77.  
  78. #ifdef __cplusplus
  79. }
  80. #endif
  81.  
  82. #endif // __MACFLOATER_H__
  83.